<template>
  <div class="main">
    我是A
    <component :is="B" />
  </div>
</template>

<script setup lang="ts">
import B from './B.vue'

</script>

<style lang="less" scoped>
.main {
  background: cadetblue;
}
</style>